// mime_types_demo.js

var mime = require('mime-types')

    (function main() {
        test1();
    })();

function test2(){}

function test1() {
    const fnArr = [() => { let _ = mime.lookup('json'); console.log("mime.lookup('json') : ", _); },
    () => { let _ = mime.lookup('.md'); console.log("mime.lookup('.md') : ", _); },
    () => { let _ = mime.lookup('file.html'); console.log("mime.lookup('file.html') : ", _); },
    () => { let _ = mime.lookup('folder/file.js'); console.log("mime.lookup('folder/file.js') : ", _); },
    () => { let _ = mime.lookup('folder/.htaccess'); console.log("mime.lookup('folder/.htaccess') : ", _); },
    () => { let _ = mime.lookup('cats'); console.log("mime.lookup('cats') : ", _); }];

    fnArr.forEach((fn) => {
        fn.call(null);
    });

    // mime.lookup('json') :  application/json
    // mime.lookup('.md') :  text/markdown
    // mime.lookup('file.html') :  text/html
    // mime.lookup('folder/file.js') :  application/javascript
    // mime.lookup('folder/.htaccess') :  false
    // mime.lookup('cats') :  false
}







